Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

[osx] adding preprocessor directives to fix include on OSX. #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

truthbk
Copy link

@truthbk truthbk commented Dec 29, 2016

I was having issues building on OSX.

Python is provided as a framework by Xcode, and has to be included as #include "Python/Python.h" as opposed to the expected in #include "Python.h" in other environments (ie. Linux). I think this is probably better than messing with the include paths.

The provided fix did it for me.

Thanks!

Copy link
Owner

@sbinet sbinet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for this.
one question though... (see below)

#include "Python.h"
#endif

#include "frameobject.h"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't all the other "internal" python-related headers be picked up from under "Python/..." as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is totally correct... I will update the PR.

@sbinet
Copy link
Owner

sbinet commented Jan 10, 2017

perhaps this could be better handled w/ pkg-config, like in #28 (comment) ?
could you give it a spin?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants